package com.chanzany.decorator;

public class Coffee extends Drink {
    @Override
    public float cost() {
        return super.getPrice();
    }
}

class Espresso extends Coffee{
    public Espresso(){
        setDes("卡布奇诺");
        setPrice(26.0f);
    }
}

class LongBlack extends Coffee{
    public LongBlack(){
        setDes("美式咖啡");
        setPrice(20.0f);
    }
}

class ShortBlack extends Coffee{
    public ShortBlack(){
        setDes("浓缩美式咖啡");
        setPrice(22.0f);
    }
}